<template>
    <div class="not-found">
        <h1>404</h1>
        <h2>页面不存在</h2>
        <el-button type="primary" @click="goBack">返回上一页</el-button>
        <el-button type="text" @click="goHome">返回首页</el-button>
    </div>
</template>

<script>
export default {
    name: 'NotFound',
    methods: {
        goBack() {
            this.$router.go(-1)
        },
        goHome() {
            this.$router.push('/main/home/1')
        }
    }
}
</script>

<style scoped>
.not-found {
    text-align: center;
    padding: 50px;
}

h1 {
    font-size: 72px;
    color: #409EFF;
    margin-bottom: 20px;
}

h2 {
    color: #666;
    margin-bottom: 30px;
}

.el-button {
    margin: 0 10px;
}
</style>